Terminal Based Text Editor - Bash Scripting